package com.xyzq.service.sm.impl;

import java.util.List;

import org.appfuse.model.User;
import org.appfuse.service.impl.GenericManagerImpl;

import com.xyzq.dao.sm.OrderSellDAO;
import com.xyzq.model.sm.OrderSell;
import com.xyzq.service.sm.OrderSellManager;

public class OrderSellManagerImpl extends GenericManagerImpl<OrderSell, Long>
		implements OrderSellManager {

	private OrderSellDAO orderSellDao;

	public OrderSellManagerImpl(OrderSellDAO orderSellDao) {
		super(orderSellDao);
		this.orderSellDao = orderSellDao;
	}

	public List<OrderSell> findByUser(User user) {
		// TODO Auto-generated method stub
		return this.orderSellDao.findByUser(user);
	}

	public void setOrderSellDao(OrderSellDAO orderSellDao) {
		this.orderSellDao = orderSellDao;
	}

	public OrderSellDAO getOrderSellDao() {
		return orderSellDao;
	}

}
